package org.metasketch.simulator.tools.channels.dynamic;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("transaction")
public class Transaction {

	@XStreamAsAttribute
	protected String alias;

	@XStreamAsAttribute
	protected String name;

	@XStreamImplicit
	protected List<StepChannel> steps = new ArrayList<StepChannel>();

	public String getAlias() {
		return alias;
	}

	public void setAlias(String id) {
		this.alias = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<StepChannel> getSteps() {
		return steps;
	}

	public void setSteps(List<StepChannel> steps) {
		this.steps = steps;
	}

}
